package vistas2;
import java.io.*;
import Dominio.*;
/**
 *
 * @author pedro
 */
public class cargaridioma {
public static void main(String[] args) throws Exception{
    int iterbar=0;
        ProgresBar B;
        DiccionarioPalabras DP=new DiccionarioPalabras();
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        DP.crearDiccionarioVacio();
        /*String fi = ("/home/sandra/diccNot.dat");
        File f = new File(fi);
        BufferedReader entrada = new BufferedReader(new FileReader(f));
        int q = Integer.parseInt(entrada.readLine());*/
        int q=9000;
        B=new ProgresBar(q,"Cargando Diccionario");
        PalabraParaAnadir[] x = new PalabraParaAnadir[q];
        String pal;
        B.setVisible(true);
        
        for (int i = 0; i < q; i++) {
            pal = "prueba";
            x[i]= new PalabraParaAnadir(pal);
            if ((DP.existLetra(x[i].getValor().charAt(0))) && DP.addPalabra(x[i])) {
                }
            iterbar++;
            if(iterbar%10==0){
                B.current.setValue(iterbar);
                Thread.sleep(10);
            }
            }
        B.setVisible(false);
        
        
}
}

